package com.medical.server.sickroom.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.sickroom.dao.SickBedDao;
import com.medical.server.sickroom.entity.SickBedEntity;
import com.medical.server.sickroom.service.SickBedService;


@Service("sickBedService")
public class SickBedServiceImpl extends ServiceImpl<SickBedDao, SickBedEntity> implements SickBedService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SickBedEntity> page = this.page(
                new Query<SickBedEntity>().getPage(params),
                new QueryWrapper<SickBedEntity>()
        );

        return new PageUtils(page);
    }

}